import fs, { Dirent } from "fs";
import path from "path";


fs.promises.readdir(path.resolve("src"), { recursive: true, withFileTypes: true })
    .then((dirents: Dirent[]) => {
        dirents.forEach(dirent => console.log(dirent))
    }).catch((err) => {
        console.log(err);
        console.log('遍历失败');
    })
